package com.wangx1n.boobey.util;

/**
 * @author wangxin
 * @create 2020-04-20 22:03
 */
public class CodeMsg {

    private int code;
    private String message;

    /**
     * //通用模块异常 5001XX
     */
    public static CodeMsg SUCCESS = new CodeMsg(0,"SUCCESS");
    public static CodeMsg SERVER_ERROR = new CodeMsg(500100,"服务端异常");
    public static CodeMsg NO_USER = new CodeMsg(2,"没有这个用户");
    public static CodeMsg NO_WORD = new CodeMsg(1,"无效查询词");
    public static CodeMsg ERROR_WORD = new CodeMsg(3,"查询错误");

    private CodeMsg(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
